Method for designating local representative color value and auto-determining detection algorithm on color image

ABSTRACT

A method for designating a local representative color value and automatically determining image searching algorithm for a color based image searching system is disclosed. A method for designating a local representative color values generally includes the steps of dividing a color image area; and obtaining a color histogram for each block, obtaining a color group from hue histograms of each block, or obtaining a maximum color group value to designate the representative color value. Also, a method determining a search algorithm generally includes the steps of detecting the number of color blocks CB having color information from the blocked information of a reference image; comparing the number of the color blocks with a determined reference value and assigning different weights to at least two search algorithm according to the comparison results; and performing a comparison search of an image by the search algorithm based on the determined weight.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a color image processing method, and more particularly to a method for designating a local representative color value and automatically determining an optimal image searching algorithm on a color image.

[0003] 2. Discussion of Related Art

[0004] In the field of color image analysis and processing, extensive researches for a method to accurately search images are actively being conducted. In response, commercial image searching apparatus and/or applications program are being developed to meet the demand for an improved image searching.

[0005] An image searching system based on content of the image is generally divided into a feature extraction module extracting characteristics of the images, an image searching module searching the images, and a module of image database.

[0006] To expedite the searching process, the characteristics of images are extracted as the images are input to the image database and the extracted characteristics are also stored in the image database. Subsequently, if a user requires an image search, a similarity between respective images are determined utilizing the characteristic information of a reference image and target images stored in the database. The target images are sorted according to the result of the comparison.

[0007] The most important information for use in the content based image searching is the color information. Accordingly, an effective performance of an image searching apparatus or applications program depends greatly on an accurate method for extracting the color information.

[0008] Generally, the number of different colors which can theoretically be expressed by a computer has been steadily increasing. However, the number of colors which can be displayed by the computer is limited by the available number of quantized colors.

[0009] In computers, a color is expressed utilizing the RGB color model based upon the three primary colors of red R, green G, and blue B. However, the RGB space is hardware oriented and a limitation exists in expressing the color changes such that the change can be visually sensed by the human eye. Thus, the hue, chroma, and brightness of the RGB space is often converted into a user oriented HSV color model based upon a hue H, saturation S and value V, then converted back to the RGB space by quantization. The CIE standards may be utilized to convert from the RGB space to the HSV color space.

[0010] Numerous amount of content based image searching apparatuses or applications programs utilizing the HSV space have been already proposed in the related art.

[0011] The characteristic information used for image searching are extracted from every pixel of an image and are mapped to color indexes. The weight of each color index on the image may be represented by a color histogram. Thus, the color histogram is an important data, indicating a color distribution of the image. Generally, there are two types of color histograms represented by n number of quantized colors, namely a global color histogram and a local color histogram.

[0012] In the local color histogram, an image is divided into n number of grids and a local histogram for each grid cell is determined. A representative index color of each local histogram is defined as a local representative color of the corresponding grid.

[0013] Thus, the global color histogram indicates a color distribution in an overall image and represents the total distribution of colors for respective pixels of the overall image, and the local color histogram indicates a distribution in a local grids and represents the total distribution of the color on a specific region of the image.

[0014] To build a color histogram, the RGB values in each pixel of an input image is converted a user oriented color space, and the converted RGB values are mapped to one of n number of colors according to its quantized color area. Based upon the mapped color, the global color histogram and the local color histogram are constructed for all image pixels. Subsequently, the histograms of a reference image and target images are compared, and arranged in the order of highest similarity. Such order becomes a sequential array of most similar images by the color information.

[0015] In the content based image searching system, accurate color values of the image must be obtained to perform an effective analysis.

[0016]FIGS. 1A through 1E show an example method for designating a local representative color value on a color image. FIG. 1A shows an image to be analyzed, FIG. 1B indicates a color histogram for an overall image, FIG. 1C shows the image by block or grid state, FIG. 1D sets forth a local histogram for each grid; and FIG. 1E shows the designated local representative color value for each grid.

[0017] Particularly, the color characteristic of the image is represented by the global color histogram as shown in FIG. 1B. The image has also been partitioned into block areas with constant sizes for a local consideration of the image. Accordingly, the color characteristic of each block areas is represented by the local color histogram as shown in FIG. 1D.

[0018] If only the global color histogram as shown in FIG. 1B is utilized in the image search, local contents of the image would not be considered. However, if the local color histogram as shown in FIG. 1D is also utilized to take into consideration the local contents, a memory with a large storage capacity would be required for storing each local color histogram data. Also, it would be difficult to easily represent the color characteristic of the image.

[0019] Numerous search algorithms according to the image characteristics have been conventionally utilized in the content base image searching system. The search algorithm for the image searching system is typically based upon a local representative color, a major color region (MCR), and a global color histogram.

[0020] The local representative color indicates a representative color value for each grid of a divided image. If there is no color representable in a grid, a “Don't Care” symbol would be represented. The major color region indicates a position on which a major color of the image is represented. For example, the major color grid may be represented as a minimum square grid. The major color here means a color which has been distributed more than a specific threshold.

[0021] As discussed above, in the content base image searching system of the related art, numerous algorithm may be used in considering several different search characteristics. Moreover, in searching images, a user manually controls the weight of the algorithm through a user interface. However, it is very difficult for a user to directly control the image searching algorithm during an image search.

[0022] Especially, there may be a significant differences in visual angle or sensual level of a person resulting in different contents stored in the database. Furthermore, for a user who is not a highly trained expert group, manually controlling the weight of numerous search algorithm is very difficult.

[0023] Finally, the differences in the visual angle or sensual level of persons makes it difficult to determine the weight of the optimum search algorithm while maintaining a high speed image searching system.

SUMMARY OF THE INVENTION

[0024] Accordingly, an object of the present invention is to solve at least the problems and disadvantages of the related art.

[0025] An object of the present invention is to provide a method for designating a local representative color value on a color image.

[0026] Another object of the present invention is to provide a method for an automatic selection of the most proper search algorithm in an image searching system.

[0027] Still another object of the present invention is to provide a method for an automatic selection of a search algorithm in a content base image searching system utilizing a characteristic weight.

[0028] Additional object of the present invention is to provide a method for auto-determining the detection algorithm in an image detector capable of furnishing linearly the weight according to the number of color blocks of the local grid.

[0029] Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objects and advantages of the invention may be realized and attained as particularly pointed out in the appended claims.

[0030] To achieve the objects and in accordance with the purposes of the invention, as embodied and broadly described herein, a method for designating a local representative color value on a color image includes the steps of: dividing a color image area into blocks of a constant size; building color histograms for each blocks and comparing the maximum value of the histogram with a first reference value; designating the maximum value as a representative color value for its block if the maximum value is more than the first reference value; obtaining color groups from the color histograms of respective blocks and comparing the gained values to a second reference value if the maximum value is less than the first reference value; and designating a maximum color group value as a representative color value of its block if the maximum color group value is more than the second reference value; and if the maximum color group value is less than the second reference value, attaining a distribution rate of the color group from the color histogram of each block, distributing and adjusting a mean or an appropriate weight of values more than a given threshold in the distribution rate, from the attained values, and designating the value as the representative color value of the corresponding block.

[0031] A method for automatically determining the searching algorithm selector in an image searching system comprises the steps of: searching the number of color blocks CB having color information of the blocks in a reference image; comparing the number of the color blocks with a determined reference value and determining weights to be assigned to at least two search algorithms; and performing a comparison search of an image by the search algorithm based on the determined weight.

BRIEF DESCRIPTION OF THE ATTACHED DRAWINGS

[0032] The invention will be described in detail with reference to the following drawings in which like reference numerals refer to like elements wherein:

[0033]FIGS. 1A to 1E are diagrams providing a method for designating image color values;

[0034] FIGS. 2A-2C are flow charts illustrating methods for designating local representative color values on a color image according to the present invention;

[0035]FIG. 3 is a block diagram showing an image searching system according to the present invention;

[0036]FIG. 4 is a flow chart showing a method for selecting an optimal searching algorithm according to one embodiment of the present invention; and

[0037]FIG. 5 is a flow chart showing a method for selecting an optimal searching algorithm according to a second embodiment of the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENT

[0038] Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings.

[0039] FIGS. 2A-2C are flow charts illustrating a method for designating a local representative color value on a color image. Referring to FIG. 2A, in step S10, a color histogram is built for each block and a maximum value of the histogram is designated as a representative color value of its block.

[0040] Particularly, the local color histograms for each block of the image as shown in FIG. 1E is built in step S1, and the maximum color value from each local color histograms is selected in step S12. The selected maximum color value Max_C is compared with a predetermined reference value R_(M) in step S13. If the maximum color value Max_C is greater than the predetermined reference value R_(M) in step S13, the value is designated as the maximum color value in step S14 and also as the representative color value of the corresponding block in step S52.

[0041] If the selected maximum color value Max_C is less than the reference value R_(M) in step S13, the corresponding block is initially designated as a “don't care” region in step S15. In step S53, a determination is made whether the representative color value designation is completed for the overall image, i.e. whether a representative color value has been designated for the last block of the image, and repeating the steps S11-S14, and S52 until the representative color value is designated for the last block.

[0042] To reduce the number of blocks designated as a “don't care” region, step S20 may be added to the method of designating the representatve color values. Referring to FIG. 2B, in step S20, a hue group is further extracted from the color histograms of the blocks, and the maximum value from the extracted values is designated as a representative color value for the corresponding block.

[0043] If the selected maximum color value Max_C is less than the reference value R_(M) in step S13, a determination is made whether a similar color is within an adjacent block. If a local color histogram of a block does not contain a color greater than a given threshold R_(M), the block may have a color distribution in which one specific color cannot be dominantly perceived. Accordingly, a consideration is made whether there exists a similar color within the block to thereby designate a more effective representative color value visually or sensually.

[0044] Particularly, before progressing to step S53, hue group histograms are obtained from the adjacent blocks by mapping similar color groups in step S21, for example, a color group of a red, a color group of a blue, etc. The hue group histograms may be derived from the already existing histograms of the image. In step S22, the maximum color group from the hue group histograms is selected, and the mean value of the maximum color group Max_H is compared with a predetermined reference value R_(MH) in step S23. If the mean hue color group value Max_H is greater than the reference value R_(MH), the value is designated as the maximum color value in step S24 and also as the local representative color value in step S52. If the maximum color group value Max_H is less than the reference value R_(MH), the block is again designated as a “don't care” region in step S25.

[0045] As an alternative method to reduce the number of blocks designated as a “don't care” region or to further reduce the number of such blocks, step S30 may be added to the method of designating the representatve color values after either step S20 or S30. Referring to FIG. 2B, in step S30, a distribution rate for the color group is further obtained from the color histogram of each block to designate a representative color value.

[0046] If the mean color group value Max_H is less than the reference value R_(MH) in step S23, a local representative hue group value from local hue group histograms is designated for each block in consideration of the color distribution in step S31. In step S32, the local representative hue group value Hi is compared with a predetermined reference value R_(H)<R_(MH), and if Hi is greater than or equal to the reference value R_(H), the distribution rate Vi of the hue group value Hi is compared to a reference value Rv in step S34. If the distribution rate Vi is greater than or equal to the reference value Rv, the hue group is determined to be evenly distributed. In step S35, a mean value within the evenly distributed color group Hi is extracted and the mean color corresponding to the mean value is stored in step S36.

[0047] In step S37, a determination is made whether the local representative hue group designation is completed for the overall image and steps S31-S36 are repeated until the local representative hue group is designated for the last block. Upon completion, a determination is made in step S38 whether a mean color of the hue group has been stored for each blocks. If a mean color has been stored, that mean color is regarded as mean color for the corresponding block in a step S51, and the value is designated as the representative color value in a step S52. However, if there is no mean color of the hue group corresponding to a block, the block remains designated as a “don't care” region.

[0048] Subsequently, the process proceeds to step S53 as discussed above, thereby designating one color value for each block as the representative color value as shown in FIG. 1E. The designated local representative color values shown in FIG. 1E may be one of the maximum color value of a local color histogram greater than a first threshold, the maximum hue group value greater than a second threshold, or the mean color of a representative hue group greater than a third threshold.

[0049]FIG. 3 is a block diagram of an image searching system according to the present invention. Referring to FIG. 3, the image searching system comprises an image data input unit 101; an analysis and process unit 102 executing an analysis and a processing of images; a plurality of comparison search units 103˜105 performing a comparison and search of the images based upon weights of image characteristics; an output display unit 106 outputting and displaying the result of the comparison and search; a feature extraction unit 107 extracting a feature of the images; and a characteristic database 108 storing target images and corresponding characteristic information.

[0050] The feature extraction unit 107 includes a global histogram (GH) data module 107 a having the color information of an overall image, a local representative color (LRC) data module 107 b having the color information of each blocks, and a major color region (MCR) data module 107 c having the color information of a region. The characteristic database 108 also includes a global histogram (GH) data module 108 a, a local representative color (LRC) data module 108 b, and a major color region (MCR) data module 108 c, each data modules storing respective characteristic information of the target images.

[0051]FIGS. 4 and 5 are flow charts showing a method for an automatic determination of an optimal search algorithm according to the present invention.

[0052]FIG. 4 shows a first embodiment of a method for an automatic determination of an optimal search algorithm including the steps of: inputting an image, detetermining whether the image is a reference image, and detecting the number of color blocks CB having color information from the blocks of the reference image (steps S100, S101, S104 and S105); extracting and storing the feature information of image in respective data modules if the input image is not a reference image (steps S102˜S103); comparing the number of the color blocks with a predetermined first reference value Ref1 and determining weights for the GH and LRC according to the comparison result (steps S106˜S109); and performing a comparison search of the image by the search algorithm based on the determined weight and classifying the search result (steps S111 and S112).

[0053]FIG. 5 shows a another embodiment of a method for an automatic determination of an optimal search algorithm including the steps of: inputting an image, determining whether the image is a reference image, and detecting the number of color blocks CB having color information from the blocks of the reference image (steps S100, S101, S104 and S105); extracting and storing the feature information of image in respective data modules if the input reference is not a reference image (steps S102˜S103); comparing the number of the color blocks with a plurality of reference values and determining weights for at least two search algorithms according to the comparison result (steps S106˜S110); and performing a comparison search of the image by the search algorithm based on the determined weight and classifying the search result (steps S111 and S112).

[0054] The operations of the first and second embodiments will be described in reference to FIGS. 3 to 5.

[0055] If the image data input to the image data input unit 101 is a reference image, a comparison-search is performed, and but if the image is a target image, the feature extraction unit 107 extracts and stores its feature value in the database 108. The target image is a real image and is the image in which a search is made while the reference image is a standard image used for a comparison and is typically a real image but may also be a virtual image made by a user in a content base image search system.

[0056] In the image feature extraction to establish the database, the global histogram data GH, the local representative color information LRC and the major color information MCR are extracted and are stored respectively in the GH, LRC, and MCR of the database 108. The content comparison-search based upon the GH, LRC and MCR is performed by each comparison search unit 103 to 105.

[0057] Particularly, the analysis and process unit 102 analyzes the image data, and first to third comparison search units 103 105 execute a search algorithm for the analyzed image information. Namely, the comparison search units 103˜105 each execute search algorithms based upon GH, LRC and MCR information from the feature extraction unit 107 and the database 108. In the embodiments of the present invention illustrated, the number of search algorithms has been limited to two or three, and the comparison searches are based upon GH, LRC, and MCR. However, the present invention is not limited to such embodiments.

[0058] After the initial analysis and processing of the image information, the image divided into blocks by an image grid and the number of the color blocks CB is detected. For example, an image may be divided into grids of ‘width×height=8×8=64’. Histograms, namely local histograms, for each respective grids is built. A color index of a representative color in the local histogram is designated as the local representative color LRC for a corresponding grid. However, not every grid would have a LRC and would be designated as a “don't care” region, as discussed above.

[0059] The number of color blocks CBs with LRCs, i.e. not designated as “don't care” region, are detected and the detected number of CB indicates a characteristic of the input image. Subsequently, the detected number of CBs is utilized in selecting an optimal search algorithm.

[0060] If the characteristic of the image is generally distinct in each grid, the detected number of CBs would be high. Because of the distinct grid characteristics, a search based upon the LRC would be most effective. Thus, the LRC algorithm is given maximum weight if the detected number of CBs is high.

[0061] If the characteristic of the image is distributed throughout the entire image, the number of CBs detected would be fairly low. Because the characteristic of the image is distributed, a search based upon the GH would be most effective. Thus, the GH alghorithm is given the maximum weight if the detected number of CBs is low.

[0062] However, if the characteristic of the image are clustered and appears in regions of the image, the detected number of CBs would neither be high or low, but somewhere in between depending upon the image. Thus, it is difficult to decide whether a search based upon the LRC or GH would be most effective. Accordingly, the MCR algorithm is given the maximum weight if the detected number of CBs is neither high or low.

[0063] Particularly, the detected number of CBs is compared to predetermined reference values Ref1, Ref2 where Ref1<Ref2. If the number of CBs is less than or equal to the first reference value Ref1, GH is assigned the maximum weight. If the number of CBs is greater than Ref1, and the number of CBs is more than the second reference value Ref2, the LRC is assigned the maximum weight. If the number of CBs is greater than Ref1, and the number of CBs is less than or equal to Ref2, i.e. the number of CBs is between Ref1 and Ref2, MCR is assigned the maximum weight.

[0064] As shown in FIGS. 4 and 5, the weights assigned to the image searching algorithms may a nonlinear type or linear type according to the CBs number. Accordingly, different weights are assigned to the three comparison search algorithms, and the image searching is performed based upon the weighted search algorithms. The result of the comparison is displayed through the output display unit 106, thereby completing the image search.

[0065] The present invention may be easily implemented in any image searching system. Also, the standard for searching the image characteristic to assign the appropriate weights need not be the detection of the number of CBs. Any other method may be used as the standard for searching the image characteristic.

[0066] In addition, the method for designating the local representative color value allows a consideration of a color distribution of each block without having to unnecessary information. Rather than storing the local a histogram, one color per one block is designated as the representative color value and stored.

[0067] Furthermore, the present invention also selects the most appropriate search algorithm automatically enabling an automatic control of the weights assigned to the search algorithms. As a result, a convenient operation for the image searching system is available to even general users and non-effectiveness of the search system caused by an individual deviation can be prevented.

[0068] The foregoing embodiments are merely exemplary and are not to be construed as limiting the present invention. The present teachings can be readily applied to other types of apparatuses. The description of the present invention is intended to be illustrative, and not to limit the scope of the claims. Many alternatives, modifications, and variations will be apparent to those skilled in the art. 

What is claimed is:
 1. A method for designating a local representative color (LRC) values of a color image, comprising the steps of: (a) dividing a color image into equal blocks; (b) building color histogram for each blocks and designating the maximum color value of a color histogram as a LRC value of a corresponding block if the maximum color value meets a first condition; and (c) repeating steps (a) and (b) until the last block of the image is processed.
 2. A method of claim 1, wherein step (b) further comprises the steps of: designating the maximum color value as a LRC value if the maximum color value is greater than a first reference value; otherwise designating the block corresponding to the maximum color value as a “don't care” region.
 3. A method of claim 2, wherein if the maximum color value of a block does not meet the first condition, the method further comprises the steps of: building hue group histograms from adjacent blocks of the block; selecting a maximum color group from the hue group histograms and determining the mean value of the maximum color group; and designating the mean value of the maximum color group as a LRC value of the block if the mean value of the maximum color group meets a second condition.
 4. A method of claim 3, wherein step further comprises the steps of: designating the mean value of the maximum color group as a LRC value if the mean value of the maximum color group is greater than a second reference value; otherwise designating the block as a “don't care” region.
 5. A method of claim 4, wherein if the mean value of the maximum color group of a block does not meet the second condition, the method further comprises the steps of: building local hue group histograms and determining a local representative hue group value from the local hue group histograms; and designating the mean value of the local representative hue group value as a LRC value if the local representative hue group value meets a third condition and if the distribution of the local representative hue group value meets a fourth condition.
 6. A method of claim 5, further comprising the steps of: designating the mean value of the local representative hue group value as a LRC value if the local representative hue group value is greater than or equal to a third reference value and if said distribution is greater than or equal to a fourth reference value; otherwise designating the block as a “don't care” region.
 7. A method of claim 5, wherein the third reference value is less than the second reference value.
 8. A method of claim 2, wherein if the maximum color value of a block does not meet the first condition, the method further comprises the steps of: building local hue group histograms and determining a local representative hue group value from the local hue group histograms; and designating the mean value of the local representative hue group value as a LRC value if the local representative hue group value meets a third condition and if the distribution of the local representative hue group value meets a fourth condition.
 9. A method of claim 8, further comprising the steps of: designating the mean value of the local representative hue group value as a LRC value if the local representative hue group value is greater than or equal to a third reference value and if said distribuition is greater than or equal to a fourth referece value; otherwise designating the block as a “don't care” region.
 10. A method for automatically determining an optimal search algorithm in a content based image searching system, comprising the steps of: (a) determining a characteristic of an image based upon a global histogram, a local histogram, and a major color information; (b) automatically assigning different weights to at least two searching algorithms according to the determined characteristic; and (c) utilizing the assigned weights to perform an image search.
 11. The method of claim 10, wherein said weights may be assigned by either a linear or non-linear distribution.
 12. The method of claim 10, wherein step (a) comprises the steps of: dividing the input image into equal blocks; designating a local representative color (LRC) value to each block if a first predetermined condition is satisfied; detecting the number of blocks with a designated LRC value and using the detected number as the characteristic.
 13. The method of claim 12, wherein step (b) comprises the step of assigning greater weight to a search algorithm based upon a global histogram if the detected number of blocks meets a second predetermined condition.
 14. The method of claim 13, wherein step (b) further comprises the step of assigning greater weight to a search algorithm based upon a global histogram if the detected number of blocks is less than or equal to a first reference number.
 15. The method of claim 14, wherein step (b) further comprises the step of assigning a greater weight to a search algorithm based upon a local histogram if the detected number of blocks is greater than the first reference number.
 16. The method of claim 14, wherein step (b) further comprises the steps of assigning a greater weight to a search algorithm based upon a local histogram if the detected number of blocks is greater than the first reference number and greater than a second reference number; otherwise assigning a greater weight to a search algorithm based upon a major color region.
 17. The method of claim 12, wherein the step of designating the LRC value comprises the steps of: (aa) building color histogram for each blocks and designating the maximum color value of a color histogram as a LRC value of a corresponding block if the maximum color value is greater than a first reference value; otherwise (bb) building hue group histograms from adjacent blocks of the block, selecting a maximum color group from the hue group histograms and determining the mean value of the maximum color group, and designating the mean value of the maximum color group as a LRC value of the block if the mean value of the maximum color group is greater than a second reference value; otherwise (cc) building local hue group histograms and determining a local representative hue group value from the local hue group histograms, and designating the mean value of the local representative hue group value as a LRC value if the local representative hue group value is greater than or equal to a third reference value and if a distribuition of the local representative hue group is greater than or equal to a fourth referece value; otherwise designating the block as a “don't care” region; and (dd) repeating steps (aa) through (cc) until the last block of the image is processed. 